#pragma once

#include <SDL/SDL.h>

class SDLDevice
{
public:
	SDLDevice(void);
	SDLDevice(int width,int height,int depth,Uint32 flags);
	~SDLDevice(void);
public:
	int OnExecute();
	bool OnInit();
	void OnEvent(SDL_Event* event);
	void OnLoop();
	void OnRender();
	void OnCleanup();
private:
	int m_width;
	int m_height;
	int m_depth;
	Uint32 m_flags;
	bool m_running;
	SDL_Surface* m_display;
};
